﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<%@ Import Namespace="AukcjeInternetowe.Providers" %>

<%
    var categories = new OracleDataProvider().GetCategories().Select(p => new { p.CategoryId, p.CategoryName });
    SelectList s = new SelectList(categories, "CategoryId", "CategoryName");
%>
<%= Html.DropDownList("CategoryId", s)%>
